<script>
export default {
  name: "AdminBannerView",
  data() {
    return {
      bannerArr:[
        {id:1,imgUrl:"/imgs/banner1.jpg",
          code:"p001",createTime:"2025/08/01 14:43:52"},
        {id:2,imgUrl:"/imgs/banner2.jpg",
          code:"p002",createTime:"2025/08/01 14:43:52"},
        {id:3,imgUrl:"/imgs/banner3.jpg",
          code:"p003",createTime:"2025/08/01 14:43:52"}],
    }
  },
}
</script>

<template>
  <el-table :data="bannerArr">
    <el-table-column label="编号" type="index"></el-table-column>
    <el-table-column label="轮播图">
      <template slot-scope="scope">
        <img :src="scope.row.imgUrl" width="200">
      </template>
    </el-table-column>
    <el-table-column label="创建时间" prop="createTime"></el-table-column>
    <el-table-column label="操作">
      <template slot-scope="scope">
        <el-button type="danger">删除</el-button>
      </template>
    </el-table-column>
  </el-table>
</template>

<style scoped>

</style>